﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类nimp_main
	/// </summary>
	[Serializable]
	public class nimpmain : Entity 
	{ 
		 public nimpmain() 
            : base("nimp_main") 
        { 

        }


		#region Model
		private string _业务流水号;
		private string _客户自编号;
		private string _客户简称;
		private string _经营单位号;
		private string _经营单位;
		private string _运输工具;
		private string _提单号;
		private string _件数;
		private string _毛重;
		private string _品名;
		private string _部门简称;
		private string _箱量20;
		private string _箱量40;
		private string _子部门简称;
		private DateTime? _录入时间;
		private string _合同号;
		private int? _部门id;
		private int? _子部门id;
		private int? _客户id;
	 
		/// <summary>
		/// 
		/// </summary>
		public string 业务流水号
		{
			get{ return _业务流水号; }
			set
			{
				this.OnPropertyValueChange(_.业务流水号,_业务流水号,value);
				this._业务流水号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 客户自编号
		{
			get{ return _客户自编号; }
			set
			{
				this.OnPropertyValueChange(_.客户自编号,_客户自编号,value);
				this._客户自编号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 客户简称
		{
			get{ return _客户简称; }
			set
			{
				this.OnPropertyValueChange(_.客户简称,_客户简称,value);
				this._客户简称 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 经营单位号
		{
			get{ return _经营单位号; }
			set
			{
				this.OnPropertyValueChange(_.经营单位号,_经营单位号,value);
				this._经营单位号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 经营单位
		{
			get{ return _经营单位; }
			set
			{
				this.OnPropertyValueChange(_.经营单位,_经营单位,value);
				this._经营单位 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 运输工具
		{
			get{ return _运输工具; }
			set
			{
				this.OnPropertyValueChange(_.运输工具,_运输工具,value);
				this._运输工具 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 提单号
		{
			get{ return _提单号; }
			set
			{
				this.OnPropertyValueChange(_.提单号,_提单号,value);
				this._提单号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 件数
		{
			get{ return _件数; }
			set
			{
				this.OnPropertyValueChange(_.件数,_件数,value);
				this._件数 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 毛重
		{
			get{ return _毛重; }
			set
			{
				this.OnPropertyValueChange(_.毛重,_毛重,value);
				this._毛重 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 品名
		{
			get{ return _品名; }
			set
			{
				this.OnPropertyValueChange(_.品名,_品名,value);
				this._品名 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 部门简称
		{
			get{ return _部门简称; }
			set
			{
				this.OnPropertyValueChange(_.部门简称,_部门简称,value);
				this._部门简称 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 箱量20
		{
			get{ return _箱量20; }
			set
			{
				this.OnPropertyValueChange(_.箱量20,_箱量20,value);
				this._箱量20 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 箱量40
		{
			get{ return _箱量40; }
			set
			{
				this.OnPropertyValueChange(_.箱量40,_箱量40,value);
				this._箱量40 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 子部门简称
		{
			get{ return _子部门简称; }
			set
			{
				this.OnPropertyValueChange(_.子部门简称,_子部门简称,value);
				this._子部门简称 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? 录入时间
		{
			get{ return _录入时间; }
			set
			{
				this.OnPropertyValueChange(_.录入时间,_录入时间,value);
				this._录入时间 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 合同号
		{
			get{ return _合同号; }
			set
			{
				this.OnPropertyValueChange(_.合同号,_合同号,value);
				this._合同号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? 部门id
		{
			get{ return _部门id; }
			set
			{
				this.OnPropertyValueChange(_.部门id,_部门id,value);
				this._部门id = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? 子部门id
		{
			get{ return _子部门id; }
			set
			{
				this.OnPropertyValueChange(_.子部门id,_子部门id,value);
				this._子部门id = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? 客户id
		{
			get{ return _客户id; }
			set
			{
				this.OnPropertyValueChange(_.客户id,_客户id,value);
				this._客户id = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.业务流水号,
				_.客户自编号,
				_.客户简称,
				_.经营单位号,
				_.经营单位,
				_.运输工具,
				_.提单号,
				_.件数,
				_.毛重,
				_.品名,
				_.部门简称,
				_.箱量20,
				_.箱量40,
				_.子部门简称,
				_.录入时间,
				_.合同号,
				_.部门id,
				_.子部门id,
				_.客户id
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_业务流水号,
				_客户自编号,
				_客户简称,
				_经营单位号,
				_经营单位,
				_运输工具,
				_提单号,
				_件数,
				_毛重,
				_品名,
				_部门简称,
				_箱量20,
				_箱量40,
				_子部门简称,
				_录入时间,
				_合同号,
				_部门id,
				_子部门id,
				_客户id
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "业务流水号":
                    this._业务流水号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "客户自编号":
                    this._客户自编号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "客户简称":
                    this._客户简称 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "经营单位号":
                    this._经营单位号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "经营单位":
                    this._经营单位 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "运输工具":
                    this._运输工具 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "提单号":
                    this._提单号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "件数":
                    this._件数 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "毛重":
                    this._毛重 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "品名":
                    this._品名 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "部门简称":
                    this._部门简称 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "箱量20":
                    this._箱量20 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "箱量40":
                    this._箱量40 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "子部门简称":
                    this._子部门简称 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "录入时间":
                    this._录入时间 = DataHelper.ConvertValue<DateTime?>(value);
                    break; 
				case "合同号":
                    this._合同号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "部门id":
                    this._部门id = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "子部门id":
                    this._子部门id = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "客户id":
                    this._客户id = DataHelper.ConvertValue<int?>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "业务流水号":
                    return this._业务流水号; 
				case "客户自编号":
                    return this._客户自编号; 
				case "客户简称":
                    return this._客户简称; 
				case "经营单位号":
                    return this._经营单位号; 
				case "经营单位":
                    return this._经营单位; 
				case "运输工具":
                    return this._运输工具; 
				case "提单号":
                    return this._提单号; 
				case "件数":
                    return this._件数; 
				case "毛重":
                    return this._毛重; 
				case "品名":
                    return this._品名; 
				case "部门简称":
                    return this._部门简称; 
				case "箱量20":
                    return this._箱量20; 
				case "箱量40":
                    return this._箱量40; 
				case "子部门简称":
                    return this._子部门简称; 
				case "录入时间":
                    return this._录入时间; 
				case "合同号":
                    return this._合同号; 
				case "部门id":
                    return this._部门id; 
				case "子部门id":
                    return this._子部门id; 
				case "客户id":
                    return this._客户id; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","nimp_main");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 业务流水号 = new Field("业务流水号","nimp_main","业务流水号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 客户自编号 = new Field("客户自编号","nimp_main","客户自编号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 客户简称 = new Field("客户简称","nimp_main","客户简称");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 经营单位号 = new Field("经营单位号","nimp_main","经营单位号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 经营单位 = new Field("经营单位","nimp_main","经营单位");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 运输工具 = new Field("运输工具","nimp_main","运输工具");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 提单号 = new Field("提单号","nimp_main","提单号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 件数 = new Field("件数","nimp_main","件数");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 毛重 = new Field("毛重","nimp_main","毛重");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 品名 = new Field("品名","nimp_main","品名");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 部门简称 = new Field("部门简称","nimp_main","部门简称");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 箱量20 = new Field("箱量20","nimp_main","箱量20");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 箱量40 = new Field("箱量40","nimp_main","箱量40");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 子部门简称 = new Field("子部门简称","nimp_main","子部门简称");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 录入时间 = new Field("录入时间","nimp_main","录入时间");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 合同号 = new Field("合同号","nimp_main","合同号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 部门id = new Field("部门id","nimp_main","部门id");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 子部门id = new Field("子部门id","nimp_main","子部门id");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 客户id = new Field("客户id","nimp_main","客户id");
		}
		#endregion

 
	}
}

